* {
  margin: 0;
  padding: 0;
}
body {
  // overflow: hidden;
  overflow-x: hidden;
}
.container {
  width: 100%;
  height: 100%;
  background-color: rgb(237, 241, 213);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  div {
    width: 400px;
    height: 200px;
    background-color: steelblue;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0 0 10px #ccc;
    margin: 10px 0;
    transition: all ease-in-out 1s;
    transform: translateX(0);
    position: relative;
    // transform: translateX(-400%);
  }
  .first {
    margin-top: 20px;
    // background-color: red;
  }
  .animateLeft {
    transform: translateX(-400%);
    // animation: leftMove 1s forwards;
  }
  .animateRight {
    transform: translateX(400%);
    // animation: leftMove 1s forwards;
  }
}

@keyframes leftMove {
  form {
    transform: translateX(-200px);
  }

  to {
    transform: translateX(0);
    background-color: red;
  }
}
